All Packages Class Hierarchy This Package Previous Next Index
perform()
message.
Function objects are used by many of the algorithms,
ex: generate.
You must implement the actual function object with code like this:
public class GenerateString implements Function0 { private cnt = 1; public Object perform() { return new String("Initial value : " + n++); } }This class will, when used with the
generate
function, fill
the container with the strings:
Initial value : 1 Initial value : 2 Initial value : 3 ...
Copyright © 1996 Finn Bock
public abstract Object perform()
All Packages Class Hierarchy This Package Previous Next Index